<script>
	$(document).ready(function() {
		arr = ['setoran','pembayaran','laporan','master'];
		
		$.each(arr , function(){
			$('#'+this).hide();
	    });
		
		$(" #<?php echo $cur_parent_menu?> ").show();
		
		$.each(arr , function(){
			var temp = this;
			$('#'+temp+'_handle').click(function(){
				$.each(arr , function(){
					$('#'+this).hide();
				});
				$('#'+temp).show();
			});
	    });	
		
		$('[id$="_handle"]').css('cursor', 'pointer');
		$('[id="<?php echo $cur_parent_menu?>_handle"]').addClass('active');
		$('[id="<?php echo $cur_selected_menu?>"]').addClass('cur_menu');
	});
</script>


<div class="maia-nav maia-complex" id="maia-nav-x">
	<div class="maia-aux">
		<ul>
			<li id="setoran_handle">Setoran
				<ul id="setoran">
					<li><a id="setoran_supir" href="<?php echo RESER ?>list_reservasi">Setoran Sopir</a></li>
					<li><a id="setoran_kasir" href="<?php echo RESER ?>list_setoran">Setoran Kasir</a></li>
					<li><a id="setoran_bank" href="<?php echo RESER ?>list_setoran_bank">Setoran Bank</a></li>
				</ul>
			</li>
			<li id="pembayaran_handle">Pembayaran
				<ul id="pembayaran">
					<li><a id="op_awal" href="<?php echo RESER ?>list_pembayaran_operasional_awal">Pembayaran OP Awal</a></li>
					<li><a id="biaya_lain" href="<?php echo BIAYA ?>">Pembayaran Biaya Lain-lain</a></li>
				</ul>
			</li>
			<?php if($this->session->userdata('level')==0){?>
			<li id="laporan_handle">Laporan
				<ul id="laporan">
					<li><a id="lapjual" href="<?php echo LAPJUAL?>">Laporan Penjualan</a></li>
					<li><a id="laptrim" href="<?php echo LAPTRIM?>">Laporan Penerimaan</a></li>
					<li><a id="lapbiaya" href="<?php echo LAPBIAYA ?>">Laporan Biaya</a></li>
					<li><a id="bank" href="<?php echo BANK ?>">Laporan Setoran Bank</a></li>
					<li><a id="spbuv" href="<?php echo SPBUV ?>">Laporan Voucher SPBU</a></li>
					<li><a id="lapkan" href="<?php echo LAPKAN ?>">Laporan Kendaraan</a></li>
					<li><a id="sopir" href="<?php echo SOPIR ?>">Laporan Supir</a></li>
					<li><a id="pencabang" href="<?php echo PENCABANG ?>">Laporan Penerimaan Cabang</a></li>
					<li><a id="penjuru" href="<?php echo PENJURU ?>">Laporan Penerimaan Jurusan</a></li>
					<li><a id="penkasir" href="<?php echo PENKASIR ?>">Laporan Penerimaan Kasir</a></li>
				</ul>
			</li>
			<li id="master_handle">Data Master
				<ul id="master">
					<li><a id="spbu" href="<?php echo SPBU ?>">SPBU</a></li>
					<li><a id="prc" href="<?php echo PRC ?>">Prosentase Charge Sopir</a></li>
					<li><a id="coa" href="<?php echo COA ?>">COA</a></li>
					<li><a id="coac" href="<?php echo COAC ?>">Kode Cabang</a></li>
					<li><a id="coaj" href="<?php echo COAJ ?>">Kode Jurusan</a></li>
					<li><a id="fee" href="<?php echo FEE ?>">Upah Sopir</a></li> 
                                        <li><a id="kota" href="<?php echo KOTA ?>">Kota User</a></li> 
				</ul>
			</li>
			<?php } ?>
		</ul>
	</div>
</div>
<!--KONTEN-DISINI-->
